package cn.cloud9.utils;

public class FileUtils {
    private FileUtils() {}


    /**
     * @description 获取文件的后缀名称
     * @author OnCloud9
     * @param
     * @date 2022/4/11 21:00
     * @return
     */
    public static String getFileTypeSuffix(String sourceFileName) {
        final int CHAR_INDEX = sourceFileName.lastIndexOf('.');
        return CHAR_INDEX > 0 ? sourceFileName.substring(CHAR_INDEX) : "";
    }




}
